-
Notifications
You must be signed in to change notification settings - Fork 38.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e/framework: remove direct imports to /pkg/controller/nodelifecycle #89243
e2e/framework: remove direct imports to /pkg/controller/nodelifecycle #89243
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SataQiu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/priority important-longterm |
/cc @neolit123 @oomichi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, just few comment.
Could you update them with rebasing this on the latest master?
test/e2e/framework/node/resource.go
Outdated
@@ -47,6 +46,21 @@ const ( | |||
sshPort = "22" | |||
) | |||
|
|||
var ( | |||
// UnreachableTaintTemplate is the taint for when a node becomes unreachable. | |||
UnreachableTaintTemplate = &v1.Taint{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used within this file, so we can define this as a local with unreachableTaintTemplate
.
test/e2e/framework/node/resource.go
Outdated
|
||
// NotReadyTaintTemplate is the taint for when a node is not ready for | ||
// executing pods | ||
NotReadyTaintTemplate = &v1.Taint{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
ec21d10
to
cfa499f
Compare
/test pull-kubernetes-e2e-kind-ipv6 |
@@ -46,6 +45,21 @@ const ( | |||
sshPort = "22" | |||
) | |||
|
|||
var ( | |||
// unreachableTaintTemplate is the taint for when a node becomes unreachable. | |||
unreachableTaintTemplate = &v1.Taint{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment referencing where this taint is originally from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
cfa499f
to
799cdbf
Compare
/test pull-kubernetes-e2e-kind |
ping @andrewsykim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating.
/lgtm
/test pull-kubernetes-e2e-gce-100-performance |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
e2e/framework: remove direct imports to /pkg/controller/nodelifecycle
Which issue(s) this PR fixes:
Ref #74352
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: